package com.lzx.user.service;

import com.lzx.common.utils.R;
import com.lzx.user.entity.Inform;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lzx.user.entity.vo.NicknameVO;
import com.lzx.user.entity.vo.OssVO;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author lzx
 * @since 2022-12-28
 */
public interface InformService extends IService<Inform> {

    //保存通知
    String saveInform(Inform inform);

    //获取通知
    R getInformList(Long userId, int[] type, int current, int size);

    //修改是否已读
    R updateIsRead(Long userId, Long id);

    //获取系统通知
    R getSystemInform(int type, int current, int size);

    //修改用户头像(通知)
    String updateAvatarToInform(OssVO ossVO);

    //修改用户昵称(通知)
    String updateNicknameToInform(NicknameVO nicknameVO);
}
